package dd.view;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JLabel;
import javax.swing.JButton;

import dd.model.Event;
import dd.model.Model;

public class AddEdgesFrame extends JFrame {

	JPanel contentPane;
	DrawingCanvas canvas;

	/**
	 * Create the frame.
	 */
	public AddEdgesFrame() {
		setTitle("Add Edges Frame");
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 651, 468);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		
		JLabel lblPleaeAddEdges = new JLabel("Pleae Add Edges");
		lblPleaeAddEdges.setBounds(273, 6, 164, 16);
		contentPane.add(lblPleaeAddEdges);
		
		Model model = Model.getInstance();
		Event event = model.getEvent();
		DrawingCanvas canvas = new DrawingCanvas();
		canvas.regesiterMouseEvent();
		canvas.setBounds(27, 43, 595, 393);
		contentPane.add(canvas);
	}

}
